\hypertarget{eeprom_8h}{
\section{front\_\-panel/eeprom.h File Reference}
\label{eeprom_8h}\index{front\_\-panel/eeprom.h@{front\_\-panel/eeprom.h}}
}
EEPROM functions.  


{\tt \#include \char`\"{}board.h\char`\"{}}\par
{\tt \#include \char`\"{}sequencer.h\char`\"{}}\par
{\tt \#include \char`\"{}main.h\char`\"{}}\par
{\tt \#include \char`\"{}antenna\_\-ctrl.h\char`\"{}}\par
{\tt \#include \char`\"{}radio\_\-interface.h\char`\"{}}\par
{\tt \#include \char`\"{}band\_\-ctrl.h\char`\"{}}\par
{\tt \#include \char`\"{}sub\_\-menu.h\char`\"{}}\par
\subsection*{Classes}
\begin{CompactItemize}
\item 
struct \hyperlink{structstruct__eeprom__table}{struct\_\-eeprom\_\-table}
\begin{CompactList}\small\item\em The EEPROM table. \item\end{CompactList}\end{CompactItemize}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\hypertarget{eeprom_8h_45905c69e584a6a7521d710a98cd3c3e}{
\#define \hyperlink{eeprom_8h_45905c69e584a6a7521d710a98cd3c3e}{EEPROM\_\-STARTUP\_\-BYTE\_\-ADDR}~0x01}
\label{eeprom_8h_45905c69e584a6a7521d710a98cd3c3e}

\begin{CompactList}\small\item\em Defines where the startup byte is located in the uC EEPROM. This is used to keep track of the device is started for the first time. \item\end{CompactList}\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
unsigned char \hyperlink{eeprom_8h_9a969c3f2bc3c4a3c78c11ce406b4d15}{eeprom\_\-read\_\-startup\_\-byte} (void)
\item 
void \hyperlink{eeprom_8h_d28f62443e97f4dc8bb5da886532d406}{eeprom\_\-write\_\-startup\_\-byte} (unsigned char val)
\begin{CompactList}\small\item\em This function will write a byte in the EEPROM so we can keep track of if the unit has ever been started. \item\end{CompactList}\item 
\hypertarget{eeprom_8h_9b3f50751bd13ae358d6f6e1516c97b1}{
void \hyperlink{eeprom_8h_9b3f50751bd13ae358d6f6e1516c97b1}{eeprom\_\-read\_\-table} (void)}
\label{eeprom_8h_9b3f50751bd13ae358d6f6e1516c97b1}

\begin{CompactList}\small\item\em Read the map of the EEPROM. \item\end{CompactList}\item 
\hypertarget{eeprom_8h_fdf6b4f32618f74a72a10dfa15ba95f9}{
void \hyperlink{eeprom_8h_fdf6b4f32618f74a72a10dfa15ba95f9}{eeprom\_\-create\_\-table} (void)}
\label{eeprom_8h_fdf6b4f32618f74a72a10dfa15ba95f9}

\begin{CompactList}\small\item\em Creates the eeprom table which is a map over the eeprom data. \item\end{CompactList}\item 
void \hyperlink{eeprom_8h_e6fff39ba757b9764c196a0622c2a18d}{eeprom\_\-save\_\-runtime\_\-settings} (\hyperlink{structstruct__runtime__settings}{struct\_\-runtime\_\-settings} $\ast$content)
\begin{CompactList}\small\item\em Save the runtime\_\-settings structure to the eeprom. \item\end{CompactList}\item 
void \hyperlink{eeprom_8h_65fca81181258a171926419c9d8cdd09}{eeprom\_\-get\_\-runtime\_\-settings} (\hyperlink{structstruct__runtime__settings}{struct\_\-runtime\_\-settings} $\ast$data)
\begin{CompactList}\small\item\em Get the runtime\_\-settings structure from the EEPROM. \item\end{CompactList}\item 
void \hyperlink{eeprom_8h_0b78120d991f6d5aeff7988b93f443e0}{eeprom\_\-get\_\-ant\_\-sub\_\-menu\_\-array\_\-structure} (unsigned char band\_\-index, unsigned char ant\_\-index, \hyperlink{structstruct__sub__menu__array}{struct\_\-sub\_\-menu\_\-array} $\ast$data)
\begin{CompactList}\small\item\em Get the \hyperlink{structstruct__sub__menu__array}{struct\_\-sub\_\-menu\_\-array} structure from the EEPROM. \item\end{CompactList}\item 
void \hyperlink{eeprom_8h_0e660144c3c99013daacaa76a31f0ad9}{eeprom\_\-get\_\-antenna\_\-data} (\hyperlink{structstruct__antenna}{struct\_\-antenna} $\ast$data, unsigned char band)
\begin{CompactList}\small\item\em Returns the antenna struct for a specific band. \item\end{CompactList}\item 
void \hyperlink{eeprom_8h_6ec03600842aca7894be5d5e541552b6}{eeprom\_\-get\_\-band\_\-data} (unsigned char band, \hyperlink{structstruct__band}{struct\_\-band} $\ast$data)
\begin{CompactList}\small\item\em Returns the band data. \item\end{CompactList}\item 
void \hyperlink{eeprom_8h_1a16336e64981c88fed8ab3855ecd4e4}{eeprom\_\-get\_\-ptt\_\-data} (\hyperlink{structstruct__ptt}{struct\_\-ptt} $\ast$data)
\begin{CompactList}\small\item\em Get the ptt structure from the EEPROM. \item\end{CompactList}\item 
void \hyperlink{eeprom_8h_dafedc1c464fc858f76bc18a5713c184}{eeprom\_\-save\_\-ant\_\-structure} (unsigned char band\_\-index, \hyperlink{structstruct__antenna}{struct\_\-antenna} $\ast$content)
\begin{CompactList}\small\item\em Save the antenna structure to the eeprom. \item\end{CompactList}\item 
void \hyperlink{eeprom_8h_317147be4ae0385bea0883aa83497e07}{eeprom\_\-get\_\-radio\_\-settings\_\-structure} (\hyperlink{structstruct__radio__settings}{struct\_\-radio\_\-settings} $\ast$data)
\begin{CompactList}\small\item\em get the radio settings from the eeprom \item\end{CompactList}\item 
void \hyperlink{eeprom_8h_32589eb14b15b42f3c7c1d0dbc4278da}{eeprom\_\-get\_\-rx\_\-antenna\_\-data} (\hyperlink{structstruct__rx__antennas}{struct\_\-rx\_\-antennas} $\ast$data)
\begin{CompactList}\small\item\em Returns the rx antenna data. \item\end{CompactList}\item 
void \hyperlink{eeprom_8h_055a52add142f4ef2d04ab5300136f4e}{eeprom\_\-save\_\-rx\_\-ant\_\-structure} (\hyperlink{structstruct__rx__antennas}{struct\_\-rx\_\-antennas} $\ast$data)
\begin{CompactList}\small\item\em Save the rx antenna structure to the eeprom. \item\end{CompactList}\item 
void \hyperlink{eeprom_8h_b943872b90370fbb808bf2f6933f0b1e}{eeprom\_\-save\_\-radio\_\-settings\_\-structure} (\hyperlink{structstruct__radio__settings}{struct\_\-radio\_\-settings} $\ast$data)
\begin{CompactList}\small\item\em Save the radio settings to the eeprom. \item\end{CompactList}\item 
void \hyperlink{eeprom_8h_64e5d1bd12072950491e44547610bd97}{eeprom\_\-save\_\-band\_\-data} (unsigned char band, \hyperlink{structstruct__band}{struct\_\-band} $\ast$data)
\begin{CompactList}\small\item\em Save the band data to the eeprom. \item\end{CompactList}\item 
void \hyperlink{eeprom_8h_d24920972859f48cd9446f50986e1ee1}{eeprom\_\-get\_\-settings\_\-structure} (\hyperlink{structstruct__setting}{struct\_\-setting} $\ast$data)
\begin{CompactList}\small\item\em get the settings from the eeprom \item\end{CompactList}\item 
void \hyperlink{eeprom_8h_1d9de145325f4507c363219ec79bdab0}{eeprom\_\-save\_\-settings\_\-structure} (\hyperlink{structstruct__setting}{struct\_\-setting} $\ast$data)
\begin{CompactList}\small\item\em Save the device settings to the eeprom. \item\end{CompactList}\item 
void \hyperlink{eeprom_8h_2c96a61dec288a4385e46df909c370ab}{eeprom\_\-save\_\-ptt\_\-data} (\hyperlink{structstruct__ptt}{struct\_\-ptt} $\ast$data)
\begin{CompactList}\small\item\em Save the band data to the eeprom. \item\end{CompactList}\item 
void \hyperlink{eeprom_8h_f39ecd57ed4a610641ab16023bab3375}{eeprom\_\-save\_\-ant\_\-sub\_\-menu\_\-array\_\-structure} (unsigned char band\_\-index, unsigned char ant\_\-index, \hyperlink{structstruct__sub__menu__array}{struct\_\-sub\_\-menu\_\-array} $\ast$data)
\begin{CompactList}\small\item\em Save the sub menu array data to the EEPROM. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
EEPROM functions. 

\begin{Desc}
\item[Author:]Mikael Larsmark, SM2WMV \end{Desc}
\begin{Desc}
\item[Date:]2010-01-25 

\begin{Code}\begin{verbatim} #include "front_panel/eeprom.h" 
\end{verbatim}
\end{Code}

 \end{Desc}


Definition in file \hyperlink{eeprom_8h-source}{eeprom.h}.

\subsection{Function Documentation}
\hypertarget{eeprom_8h_0b78120d991f6d5aeff7988b93f443e0}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-get\_\-ant\_\-sub\_\-menu\_\-array\_\-structure@{eeprom\_\-get\_\-ant\_\-sub\_\-menu\_\-array\_\-structure}}
\index{eeprom\_\-get\_\-ant\_\-sub\_\-menu\_\-array\_\-structure@{eeprom\_\-get\_\-ant\_\-sub\_\-menu\_\-array\_\-structure}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-get\_\-ant\_\-sub\_\-menu\_\-array\_\-structure}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-get\_\-ant\_\-sub\_\-menu\_\-array\_\-structure (unsigned char {\em band\_\-index}, \/  unsigned char {\em ant\_\-index}, \/  {\bf struct\_\-sub\_\-menu\_\-array} $\ast$ {\em data})}}
\label{eeprom_8h_0b78120d991f6d5aeff7988b93f443e0}


Get the \hyperlink{structstruct__sub__menu__array}{struct\_\-sub\_\-menu\_\-array} structure from the EEPROM. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em band\_\-index}]Which band we wish to retrieve the sub menu from \item[{\em ant\_\-index}]Which antenna we wish to get the sub menu from \item[{\em data}]Pointer to where we wish to store the data \end{description}
\end{Desc}


Definition at line 205 of file eeprom.c.

References struct\_\-eeprom\_\-table::antenna1\_\-sub\_\-menu, struct\_\-eeprom\_\-table::antenna2\_\-sub\_\-menu, struct\_\-eeprom\_\-table::antenna3\_\-sub\_\-menu, struct\_\-eeprom\_\-table::antenna4\_\-sub\_\-menu, and eeprom\_\-m24\_\-read\_\-byte().

Referenced by sub\_\-menu\_\-load().\hypertarget{eeprom_8h_0e660144c3c99013daacaa76a31f0ad9}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-get\_\-antenna\_\-data@{eeprom\_\-get\_\-antenna\_\-data}}
\index{eeprom\_\-get\_\-antenna\_\-data@{eeprom\_\-get\_\-antenna\_\-data}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-get\_\-antenna\_\-data}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-get\_\-antenna\_\-data ({\bf struct\_\-antenna} $\ast$ {\em data}, \/  unsigned char {\em band})}}
\label{eeprom_8h_0e660144c3c99013daacaa76a31f0ad9}


Returns the antenna struct for a specific band. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em data}]Where the data should be saved \item[{\em band}]Which band you wish to get the pointer \end{description}
\end{Desc}


Definition at line 77 of file eeprom.c.

References struct\_\-eeprom\_\-table::antenna, and eeprom\_\-m24\_\-read\_\-byte().

Referenced by antenna\_\-ctrl\_\-ant\_\-read\_\-eeprom().\hypertarget{eeprom_8h_6ec03600842aca7894be5d5e541552b6}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-get\_\-band\_\-data@{eeprom\_\-get\_\-band\_\-data}}
\index{eeprom\_\-get\_\-band\_\-data@{eeprom\_\-get\_\-band\_\-data}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-get\_\-band\_\-data}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-get\_\-band\_\-data (unsigned char {\em band}, \/  {\bf struct\_\-band} $\ast$ {\em data})}}
\label{eeprom_8h_6ec03600842aca7894be5d5e541552b6}


Returns the band data. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em band}]Which band we wish to retrieve the data from \item[{\em data}]Where the data should be saved \end{description}
\end{Desc}


Definition at line 98 of file eeprom.c.

References struct\_\-eeprom\_\-table::band, and eeprom\_\-m24\_\-read\_\-byte().

Referenced by band\_\-ctrl\_\-load\_\-band(), and band\_\-ctrl\_\-load\_\-band\_\-limits().\hypertarget{eeprom_8h_1a16336e64981c88fed8ab3855ecd4e4}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-get\_\-ptt\_\-data@{eeprom\_\-get\_\-ptt\_\-data}}
\index{eeprom\_\-get\_\-ptt\_\-data@{eeprom\_\-get\_\-ptt\_\-data}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-get\_\-ptt\_\-data}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-get\_\-ptt\_\-data ({\bf struct\_\-ptt} $\ast$ {\em data})}}
\label{eeprom_8h_1a16336e64981c88fed8ab3855ecd4e4}


Get the ptt structure from the EEPROM. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em data}]A pointer where to store the data \end{description}
\end{Desc}


Definition at line 183 of file eeprom.c.

References eeprom\_\-m24\_\-read\_\-byte(), and struct\_\-eeprom\_\-table::struct\_\-ptt.

Referenced by sequencer\_\-load\_\-eeprom().\hypertarget{eeprom_8h_317147be4ae0385bea0883aa83497e07}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-get\_\-radio\_\-settings\_\-structure@{eeprom\_\-get\_\-radio\_\-settings\_\-structure}}
\index{eeprom\_\-get\_\-radio\_\-settings\_\-structure@{eeprom\_\-get\_\-radio\_\-settings\_\-structure}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-get\_\-radio\_\-settings\_\-structure}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-get\_\-radio\_\-settings\_\-structure ({\bf struct\_\-radio\_\-settings} $\ast$ {\em data})}}
\label{eeprom_8h_317147be4ae0385bea0883aa83497e07}


get the radio settings from the eeprom 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em data}]Where the data should be saved \end{description}
\end{Desc}


Definition at line 108 of file eeprom.c.

References eeprom\_\-m24\_\-read\_\-byte(), and struct\_\-eeprom\_\-table::radio\_\-settings.

Referenced by radio\_\-interface\_\-load\_\-eeprom().\hypertarget{eeprom_8h_65fca81181258a171926419c9d8cdd09}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-get\_\-runtime\_\-settings@{eeprom\_\-get\_\-runtime\_\-settings}}
\index{eeprom\_\-get\_\-runtime\_\-settings@{eeprom\_\-get\_\-runtime\_\-settings}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-get\_\-runtime\_\-settings}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-get\_\-runtime\_\-settings ({\bf struct\_\-runtime\_\-settings} $\ast$ {\em data})}}
\label{eeprom_8h_65fca81181258a171926419c9d8cdd09}


Get the runtime\_\-settings structure from the EEPROM. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em data}]A pointer where to store the data \end{description}
\end{Desc}


Definition at line 193 of file eeprom.c.

References eeprom\_\-m24\_\-read\_\-byte(), and struct\_\-eeprom\_\-table::runtime\_\-settings.

Referenced by load\_\-settings().\hypertarget{eeprom_8h_32589eb14b15b42f3c7c1d0dbc4278da}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-get\_\-rx\_\-antenna\_\-data@{eeprom\_\-get\_\-rx\_\-antenna\_\-data}}
\index{eeprom\_\-get\_\-rx\_\-antenna\_\-data@{eeprom\_\-get\_\-rx\_\-antenna\_\-data}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-get\_\-rx\_\-antenna\_\-data}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-get\_\-rx\_\-antenna\_\-data ({\bf struct\_\-rx\_\-antennas} $\ast$ {\em data})}}
\label{eeprom_8h_32589eb14b15b42f3c7c1d0dbc4278da}


Returns the rx antenna data. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em data}]Where the data should be saved \end{description}
\end{Desc}


Definition at line 87 of file eeprom.c.

References eeprom\_\-m24\_\-read\_\-byte(), and struct\_\-eeprom\_\-table::rx\_\-antennas.

Referenced by antenna\_\-ctrl\_\-rx\_\-ant\_\-read\_\-eeprom().\hypertarget{eeprom_8h_d24920972859f48cd9446f50986e1ee1}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-get\_\-settings\_\-structure@{eeprom\_\-get\_\-settings\_\-structure}}
\index{eeprom\_\-get\_\-settings\_\-structure@{eeprom\_\-get\_\-settings\_\-structure}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-get\_\-settings\_\-structure}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-get\_\-settings\_\-structure ({\bf struct\_\-setting} $\ast$ {\em data})}}
\label{eeprom_8h_d24920972859f48cd9446f50986e1ee1}


get the settings from the eeprom 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em data}]Where the data should be saved \end{description}
\end{Desc}


Definition at line 118 of file eeprom.c.

References eeprom\_\-m24\_\-read\_\-byte(), and struct\_\-eeprom\_\-table::settings.

Referenced by load\_\-settings().\hypertarget{eeprom_8h_9a969c3f2bc3c4a3c78c11ce406b4d15}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-read\_\-startup\_\-byte@{eeprom\_\-read\_\-startup\_\-byte}}
\index{eeprom\_\-read\_\-startup\_\-byte@{eeprom\_\-read\_\-startup\_\-byte}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-read\_\-startup\_\-byte}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char eeprom\_\-read\_\-startup\_\-byte (void)}}
\label{eeprom_8h_9a969c3f2bc3c4a3c78c11ce406b4d15}


Will read the startup byte from the EEPROM, which does indicate if the unit has been started before or not \begin{Desc}
\item[Returns:]The status of the startup byte \end{Desc}


Definition at line 45 of file eeprom.c.

References EEPROM\_\-STARTUP\_\-BYTE\_\-ADDR.

Referenced by main().\hypertarget{eeprom_8h_dafedc1c464fc858f76bc18a5713c184}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-save\_\-ant\_\-structure@{eeprom\_\-save\_\-ant\_\-structure}}
\index{eeprom\_\-save\_\-ant\_\-structure@{eeprom\_\-save\_\-ant\_\-structure}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-save\_\-ant\_\-structure}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-save\_\-ant\_\-structure (unsigned char {\em band\_\-index}, \/  {\bf struct\_\-antenna} $\ast$ {\em content})}}
\label{eeprom_8h_dafedc1c464fc858f76bc18a5713c184}


Save the antenna structure to the eeprom. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em band\_\-index}]Which band it is \item[{\em content}]The data to be saved \end{description}
\end{Desc}


Definition at line 230 of file eeprom.c.

References struct\_\-eeprom\_\-table::antenna, and eeprom\_\-m24\_\-write\_\-block().

Referenced by computer\_\-interface\_\-parse\_\-data().\hypertarget{eeprom_8h_f39ecd57ed4a610641ab16023bab3375}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-save\_\-ant\_\-sub\_\-menu\_\-array\_\-structure@{eeprom\_\-save\_\-ant\_\-sub\_\-menu\_\-array\_\-structure}}
\index{eeprom\_\-save\_\-ant\_\-sub\_\-menu\_\-array\_\-structure@{eeprom\_\-save\_\-ant\_\-sub\_\-menu\_\-array\_\-structure}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-save\_\-ant\_\-sub\_\-menu\_\-array\_\-structure}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-save\_\-ant\_\-sub\_\-menu\_\-array\_\-structure (unsigned char {\em band\_\-index}, \/  unsigned char {\em ant\_\-index}, \/  {\bf struct\_\-sub\_\-menu\_\-array} $\ast$ {\em data})}}
\label{eeprom_8h_f39ecd57ed4a610641ab16023bab3375}


Save the sub menu array data to the EEPROM. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em band\_\-index}]The band we wish to save the settings for \item[{\em ant\_\-index}]The antenna index of the data \item[{\em data}]The data to save to the EEPROM \end{description}
\end{Desc}


Definition at line 269 of file eeprom.c.

References struct\_\-eeprom\_\-table::antenna1\_\-sub\_\-menu, struct\_\-eeprom\_\-table::antenna2\_\-sub\_\-menu, struct\_\-eeprom\_\-table::antenna3\_\-sub\_\-menu, struct\_\-eeprom\_\-table::antenna4\_\-sub\_\-menu, and eeprom\_\-m24\_\-write\_\-block().

Referenced by computer\_\-interface\_\-parse\_\-data().\hypertarget{eeprom_8h_64e5d1bd12072950491e44547610bd97}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-save\_\-band\_\-data@{eeprom\_\-save\_\-band\_\-data}}
\index{eeprom\_\-save\_\-band\_\-data@{eeprom\_\-save\_\-band\_\-data}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-save\_\-band\_\-data}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-save\_\-band\_\-data (unsigned char {\em band}, \/  {\bf struct\_\-band} $\ast$ {\em data})}}
\label{eeprom_8h_64e5d1bd12072950491e44547610bd97}


Save the band data to the eeprom. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em band}]Which band we wish to save the data to \item[{\em data}]The data to save to the EEPROM \end{description}
\end{Desc}


Definition at line 255 of file eeprom.c.

References struct\_\-eeprom\_\-table::band, and eeprom\_\-m24\_\-write\_\-block().

Referenced by computer\_\-interface\_\-parse\_\-data().\hypertarget{eeprom_8h_2c96a61dec288a4385e46df909c370ab}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-save\_\-ptt\_\-data@{eeprom\_\-save\_\-ptt\_\-data}}
\index{eeprom\_\-save\_\-ptt\_\-data@{eeprom\_\-save\_\-ptt\_\-data}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-save\_\-ptt\_\-data}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-save\_\-ptt\_\-data ({\bf struct\_\-ptt} $\ast$ {\em data})}}
\label{eeprom_8h_2c96a61dec288a4385e46df909c370ab}


Save the band data to the eeprom. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em data}]The data to save to the EEPROM \end{description}
\end{Desc}


Definition at line 261 of file eeprom.c.

References eeprom\_\-m24\_\-write\_\-block(), and struct\_\-eeprom\_\-table::struct\_\-ptt.

Referenced by computer\_\-interface\_\-parse\_\-data().\hypertarget{eeprom_8h_b943872b90370fbb808bf2f6933f0b1e}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-save\_\-radio\_\-settings\_\-structure@{eeprom\_\-save\_\-radio\_\-settings\_\-structure}}
\index{eeprom\_\-save\_\-radio\_\-settings\_\-structure@{eeprom\_\-save\_\-radio\_\-settings\_\-structure}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-save\_\-radio\_\-settings\_\-structure}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-save\_\-radio\_\-settings\_\-structure ({\bf struct\_\-radio\_\-settings} $\ast$ {\em data})}}
\label{eeprom_8h_b943872b90370fbb808bf2f6933f0b1e}


Save the radio settings to the eeprom. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em data}]The data to save to the EEPROM \end{description}
\end{Desc}


Definition at line 248 of file eeprom.c.

References eeprom\_\-m24\_\-write\_\-block(), and struct\_\-eeprom\_\-table::radio\_\-settings.

Referenced by computer\_\-interface\_\-parse\_\-data().\hypertarget{eeprom_8h_e6fff39ba757b9764c196a0622c2a18d}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-save\_\-runtime\_\-settings@{eeprom\_\-save\_\-runtime\_\-settings}}
\index{eeprom\_\-save\_\-runtime\_\-settings@{eeprom\_\-save\_\-runtime\_\-settings}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-save\_\-runtime\_\-settings}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-save\_\-runtime\_\-settings ({\bf struct\_\-runtime\_\-settings} $\ast$ {\em content})}}
\label{eeprom_8h_e6fff39ba757b9764c196a0622c2a18d}


Save the runtime\_\-settings structure to the eeprom. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em content}]The data to be saved \end{description}
\end{Desc}


Definition at line 177 of file eeprom.c.

References eeprom\_\-m24\_\-write\_\-block(), and struct\_\-eeprom\_\-table::runtime\_\-settings.

Referenced by main(), and main\_\-save\_\-settings().\hypertarget{eeprom_8h_055a52add142f4ef2d04ab5300136f4e}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-save\_\-rx\_\-ant\_\-structure@{eeprom\_\-save\_\-rx\_\-ant\_\-structure}}
\index{eeprom\_\-save\_\-rx\_\-ant\_\-structure@{eeprom\_\-save\_\-rx\_\-ant\_\-structure}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-save\_\-rx\_\-ant\_\-structure}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-save\_\-rx\_\-ant\_\-structure ({\bf struct\_\-rx\_\-antennas} $\ast$ {\em data})}}
\label{eeprom_8h_055a52add142f4ef2d04ab5300136f4e}


Save the rx antenna structure to the eeprom. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em data}]The data to save to the EEPROM \end{description}
\end{Desc}


Definition at line 236 of file eeprom.c.

References eeprom\_\-m24\_\-write\_\-block(), and struct\_\-eeprom\_\-table::rx\_\-antennas.

Referenced by computer\_\-interface\_\-parse\_\-data().\hypertarget{eeprom_8h_1d9de145325f4507c363219ec79bdab0}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-save\_\-settings\_\-structure@{eeprom\_\-save\_\-settings\_\-structure}}
\index{eeprom\_\-save\_\-settings\_\-structure@{eeprom\_\-save\_\-settings\_\-structure}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-save\_\-settings\_\-structure}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-save\_\-settings\_\-structure ({\bf struct\_\-setting} $\ast$ {\em data})}}
\label{eeprom_8h_1d9de145325f4507c363219ec79bdab0}


Save the device settings to the eeprom. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em data}]The data to save to the EEPROM \end{description}
\end{Desc}


Definition at line 242 of file eeprom.c.

References eeprom\_\-m24\_\-write\_\-block(), and struct\_\-eeprom\_\-table::settings.

Referenced by computer\_\-interface\_\-parse\_\-data().\hypertarget{eeprom_8h_d28f62443e97f4dc8bb5da886532d406}{
\index{eeprom.h@{eeprom.h}!eeprom\_\-write\_\-startup\_\-byte@{eeprom\_\-write\_\-startup\_\-byte}}
\index{eeprom\_\-write\_\-startup\_\-byte@{eeprom\_\-write\_\-startup\_\-byte}!eeprom.h@{eeprom.h}}
\subsubsection[{eeprom\_\-write\_\-startup\_\-byte}]{\setlength{\rightskip}{0pt plus 5cm}void eeprom\_\-write\_\-startup\_\-byte (unsigned char {\em val})}}
\label{eeprom_8h_d28f62443e97f4dc8bb5da886532d406}


This function will write a byte in the EEPROM so we can keep track of if the unit has ever been started. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em val}]What value we wish to write to the EEPROM \end{description}
\end{Desc}


Definition at line 51 of file eeprom.c.

References EEPROM\_\-STARTUP\_\-BYTE\_\-ADDR.

Referenced by main().